<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=utf-8"%>
<%@ taglib prefix="pm" uri="http://www.keystudio.com/tags/premission"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script>
function navTabAjax(json){
navTabAjaxDone(json);
navTab.reload();
}
function dialogAjax(json){
dialogAjaxDone(json);
navTab.reload();
}
</script>
</head>
<body>
 <pm:permission action="manager" module="sys">
<form id="pagerForm" method="post" action="auth/query">
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="numPerPage" value="${auth.everyPage }" />
</form>
<div class="pageHeader">
<form onsubmit="return navTabSearch(this);" action="auth/query"
	method="post">
<div class="searchBar">
<table>
<tr>
<td>模块名:<input type="text" name="module"
	id="module" value="${auth.module }" /></td><td> 行动指令:<input type="text"
	name="action" id="action" value="${auth.action }" /></td>
		<td><label> 所属组织:</label><input type="hidden" name="groupId"
			id="groupId" value="${auth.groupId }" /> <input type="text"
			name="groupName" id="groupName" value="${auth.groupName }"
			suggestFields="groupName" suggestUrl="org/select" /></td>
		<td><a class="btnLook" href="org/search" lookupGroup="">查找带回</a>
		</td>
</tr>
</table>
<div class="subBar">
<ul>
	<li>
	<div class="buttonActive">
	<div class="buttonContent">
	<button type="submit">检索</button>
	</div>
	</div>
	</li>
</ul>
</div>
</div>
</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="jsp/auth/new.jsp" target="navTab"><span>新建</span></a></li>
		</ul>
	</div>
<table class="table" width="100%" layoutH="137">
	<thead>
		<tr>
			<th>ID</th>
			<th>组织名称</th>
			<th>模块名</th>
			<th>行动指令</th>
			<th>操作</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach items="${list}" var="item" varStatus="status">
			<tr>
				<td>${item.id }</td>
				<td>${item.groupName }</td>
				<td>${item.module }</td>
				<td>${item.action }</td>
				<td><a  target="navTab"
					href="auth/edit?id=${item.id }">编辑</a>&nbsp;&nbsp;&nbsp;&nbsp;<a title="确认删除吗？" callback="navTabAjax" target="ajaxTodo"
					href="auth/delete?id=${item.id }">删除</a></td>
			</tr>
		</c:forEach>
	</tbody>
</table>
<div class="panelBar">
<div class="pages">共${auth.totalCount}条</span></div>
<div class="pagination" targetType="navTab"
	totalCount="${auth.totalCount}" numPerPage="${auth.everyPage }"
	pageNumShown="10" currentPage="${auth.pageNum}"></div>
</div>
</div>
</pm:permission>
</body>
</html>